﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Rison.Web.CommonPage
{
    public abstract class ModalDialogBase : Page 
    {
        protected override void OnLoad(EventArgs e)
        {
            ClearDialogCache();

            base.OnLoad(e);
        }

        /// <summary>
        /// 清除模态窗口缓存。
        /// </summary>
        protected void ClearDialogCache()
        {
            Response.Expires = 0;
            Response.Cache.SetNoStore();
            Response.AddHeader("pragma", "no-cache");
            Response.AddHeader("cache-control", "private");
        }
    }
}
